//
// SCloudTextureClamp.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class SCloudTextureClamp {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public SCloudTextureClamp(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(SCloudTextureClamp obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_SCloudTextureClamp(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setWidth(long value) {
    nel3dJNI.SCloudTextureClamp_Width_set(swigCPtr, this, value);
  }

  public long getWidth() {
    return nel3dJNI.SCloudTextureClamp_Width_get(swigCPtr, this);
  }

  public void setHeight(long value) {
    nel3dJNI.SCloudTextureClamp_Height_set(swigCPtr, this, value);
  }

  public long getHeight() {
    return nel3dJNI.SCloudTextureClamp_Height_get(swigCPtr, this);
  }

  public void setDepth(long value) {
    nel3dJNI.SCloudTextureClamp_Depth_set(swigCPtr, this, value);
  }

  public long getDepth() {
    return nel3dJNI.SCloudTextureClamp_Depth_get(swigCPtr, this);
  }

  public void setNbW(long value) {
    nel3dJNI.SCloudTextureClamp_NbW_set(swigCPtr, this, value);
  }

  public long getNbW() {
    return nel3dJNI.SCloudTextureClamp_NbW_get(swigCPtr, this);
  }

  public void setNbH(long value) {
    nel3dJNI.SCloudTextureClamp_NbH_set(swigCPtr, this, value);
  }

  public long getNbH() {
    return nel3dJNI.SCloudTextureClamp_NbH_get(swigCPtr, this);
  }

  public void setMem(SWIGTYPE_p_unsigned_char value) {
    nel3dJNI.SCloudTextureClamp_Mem_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
  }

  public SWIGTYPE_p_unsigned_char getMem() {
    long cPtr = nel3dJNI.SCloudTextureClamp_Mem_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
  }

  public void setTex(SWIGTYPE_p_NLMISC__CSmartPtrT_NL3D__CTextureMem_t value) {
    nel3dJNI.SCloudTextureClamp_Tex_set(swigCPtr, this, SWIGTYPE_p_NLMISC__CSmartPtrT_NL3D__CTextureMem_t.getCPtr(value));
  }

  public SWIGTYPE_p_NLMISC__CSmartPtrT_NL3D__CTextureMem_t getTex() {
    long cPtr = nel3dJNI.SCloudTextureClamp_Tex_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NLMISC__CSmartPtrT_NL3D__CTextureMem_t(cPtr, false);
  }

  public void setToClamp(CMaterial value) {
    nel3dJNI.SCloudTextureClamp_ToClamp_set(swigCPtr, this, CMaterial.getCPtr(value), value);
  }

  public CMaterial getToClamp() {
    long cPtr = nel3dJNI.SCloudTextureClamp_ToClamp_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CMaterial(cPtr, false);
  }

  public SCloudTextureClamp() {
    this(nel3dJNI.new_SCloudTextureClamp(), true);
  }

  public void init(long nWidth, long nHeight, long nDepth, String filename) {
    nel3dJNI.SCloudTextureClamp_init(swigCPtr, this, nWidth, nHeight, nDepth, filename);
  }

}
